package com.aitech.hardwareconctrl;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.friendlyarm.AndroidSDK.EngineParameter;
import com.friendlyarm.AndroidSDK.SomeUtils;

public class ArmAItechActivity extends AppCompatActivity implements View.OnClickListener {


    public Button acitonbowButton;
    public Button actionbyeButton;
    public Button actionsaluteButton;
    public Button actionnodButton;
    public Button actiontalkButton;
    public Button actionsharkheadButton;
    public Button actionsharkheadleftButton;
    public Button actionsharkheadrightButton;
    public Button actionsharkhandButton;
    public Button actionsharkhandrightButton;
    public Button actionsharkhandleftButton;
    public Button actionhandfrontButton;
    public Button actionhandmiddleButton;
    public Button actionhandbackButton;
    public Button actionHelplessButton;
    public Button actionpleaseButton;
    public Button actionpleaseleftButton;
    public Button actionpleaserightButton;
    public Button actioncancelButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_arm_aitech);
        initview();
    }

    @Override
    public void onClick(View view) {
        int id = view.getId();

        if (id == R.id.acitonbow) {
            SomeUtils.writeTodev2(EngineParameter.actionBow);
        }
        if (id == R.id.actionbye) {
            SomeUtils.writeTodev2(EngineParameter.actionSix);
        }

        if (id == R.id.actionsalute) {
            SomeUtils.writeTodev2(EngineParameter.actionFive);
        }
        if (id == R.id.actionnod) {
            SomeUtils.writeTodev2(EngineParameter.actionThirteen_nod);
        }
        if (id == R.id.actiontalk) {
            SomeUtils.writeTodev2(EngineParameter.actionEven_talk);
        }
        if (id == R.id.actionsharkhead) {
            SomeUtils.writeTodev2(EngineParameter.actionFifteen_SharkHead);
        }
        if (id == R.id.actionsharkheadleft) {
            SomeUtils.writeTodev2(EngineParameter.actionSixteen_SharkHead_left);
        }
        if (id == R.id.actionsharkheadright) {
            SomeUtils.writeTodev2(EngineParameter.actionSenverteen_SharkHead_Right);
        }
        if (id == R.id.actionsharkhand) {
            SomeUtils.writeTodev2(EngineParameter.actionFourteen_SharkHand);
        }
        if (id == R.id.actionsharkhandright) {
            SomeUtils.writeTodev2(EngineParameter.actionSenverteen_SharkHand_Right);
        }
        if (id == R.id.actionsharkhandleft) {
            SomeUtils.writeTodev2(EngineParameter.actionSenverteen_SharkHand_left);
        }
        if (id == R.id.actionhandfront) {
            SomeUtils.writeTodev2(EngineParameter.actionThree);
        }
        if (id == R.id.actionhandmiddle) {
            SomeUtils.writeTodev2(EngineParameter.actionOne);
        }
        if (id == R.id.actionhandback) {
            SomeUtils.writeTodev2(EngineParameter.actionFour);
        }
        if (id == R.id.actionHelpless) {
            SomeUtils.writeTodev2(EngineParameter.actionTwen);
        }
        if (id == R.id.actionplease) {
            SomeUtils.writeTodev2(EngineParameter.actionTen);
        }
        if (id == R.id.actionpleaseleft) {
            SomeUtils.writeTodev2(EngineParameter.actionSenven);
        }
        if (id == R.id.actionpleaseright) {
            SomeUtils.writeTodev2(EngineParameter.actionEghit);
        }
        if (id == R.id.actioncancel) {
            SomeUtils.writeTodev2(EngineParameter.actionCancel);
        }
    }


    public void initview() {


        acitonbowButton = (Button) findViewById(R.id.acitonbow);
        actionbyeButton = (Button) findViewById(R.id.actionbye);
        actionsaluteButton = (Button) findViewById(R.id.actionsalute);
        actionnodButton = (Button) findViewById(R.id.actionnod);
        actiontalkButton = (Button) findViewById(R.id.actiontalk);
        actionsharkheadButton = (Button) findViewById(R.id.actionsharkhead);
        actionsharkheadleftButton = (Button) findViewById(R.id.actionsharkheadleft);
        actionsharkheadrightButton = (Button) findViewById(R.id.actionsharkheadright);
        actionsharkhandButton = (Button) findViewById(R.id.actionsharkhand);
        actionsharkhandrightButton = (Button) findViewById(R.id.actionsharkhandright);
        actionsharkhandleftButton = (Button) findViewById(R.id.actionsharkhandleft);
        actionhandfrontButton = (Button) findViewById(R.id.actionhandfront);
        actionhandmiddleButton = (Button) findViewById(R.id.actionhandmiddle);
        actionhandbackButton = (Button) findViewById(R.id.actionhandback);
        actionHelplessButton = (Button) findViewById(R.id.actionHelpless);
        actionpleaseButton = (Button) findViewById(R.id.actionplease);
        actionpleaseleftButton = (Button) findViewById(R.id.actionpleaseleft);
        actionpleaserightButton = (Button) findViewById(R.id.actionpleaseright);
        actioncancelButton = (Button) findViewById(R.id.actioncancel);

        acitonbowButton.setOnClickListener(this);
        actionbyeButton.setOnClickListener(this);
        actionsaluteButton.setOnClickListener(this);
        actionnodButton.setOnClickListener(this);
        actiontalkButton.setOnClickListener(this);
        actionsharkheadButton.setOnClickListener(this);
        actionsharkheadleftButton.setOnClickListener(this);
        actionsharkheadrightButton.setOnClickListener(this);
        actionsharkhandButton.setOnClickListener(this);
        actionsharkhandrightButton.setOnClickListener(this);
        actionsharkhandleftButton.setOnClickListener(this);
        actionhandfrontButton.setOnClickListener(this);
        actionhandmiddleButton.setOnClickListener(this);
        actionhandbackButton.setOnClickListener(this);
        actionHelplessButton.setOnClickListener(this);
        actionpleaseButton.setOnClickListener(this);
        actionpleaseleftButton.setOnClickListener(this);
        actionpleaserightButton.setOnClickListener(this);
        actioncancelButton.setOnClickListener(this);

    }
}
